<ui:composition
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>

	<!--<rich:modalPanel id="collegeModelPanel" width="300" height="200">-->
	<!--<f:facet name="header">-->
	<!--<h:panelGroup>-->
	<!--<h:outputText value="#{ dictionaryBundle.college}"></h:outputText>-->
	<!--</h:panelGroup>-->
	<!--</f:facet>-->
	<!--<ui:decorate template="/facelets/template/student/collegeAddTemplate.xhtml">-->
	<!--<ui:param name="record" value="# {studentBean.college}"/>-->
	<!--<ui:param name="idPrefix" value="addCollege"/>-->
	<!--</ui:decorate>-->
	<!--<h:panelGroup>-->
	<!--<rich:spacer/>-->
	<!--<rich:spacer/>-->
	<!--<a4j:commandButton id="butSave" value="# {commonBundle.save}"-->
	<!--action="# {studentBean.saveCollege}"-->
	<!--oncomplete="Richfaces.hideModalPanel('collegeModelPanel')"-->
	<!--immediate="true"-->
	<!--reRender="# {idPrefix}StudentEducationEditPanel"/>-->

	<!--<a4j:commandButton id="butCancel" value="# {commonBundle.cancel}"-->
	<!--action="# {studentBean.cancelCollege}"-->
	<!--oncomplete="Richfaces.hideModalPanel('collegeModelPanel')"-->
	<!--immediate="true"-->
	<!--reRender="# {idPrefix}StudentEducationEditPanel"/>-->
	<!--</h:panelGroup>-->
	<!--</rich:modalPanel>-->

	<h:panelGrid id="#{idPrefix}StudentEducationEditPanel" columns="3" width="380px">
		<a4j:commandLink value="#{studentBundle.addNewCollege}" id="addLink" action="toWizadrCollegeAdd"
						 immediate="true">
			<!--<rich:componentControl for="collegeModelPanel" attachTo="addLink" operation="show" event="onclick"/>-->
		</a4j:commandLink>
		<rich:spacer/>
		<rich:spacer/>
		<h:outputText value="#{studentBundle.collegeName}" styleClass="requiredField"/>
		<itdep:entitySelectMenu value="#{actionBean.college}"
								entityType="college"
								format="{i18n.fullName}"
								id="#{idPrefix}CollegeName"
								styleClass="sizeCopmonent" anyValue="#{anyValue}"/>
		<itdep:errorMessage for="#{idPrefix}CollegeName"/>

		<h:outputText value="#{studentBundle.graduationYear}"/>
		<rich:calendar value="#{actionBean.graduationYear}" id="#{idPrefix}GraduationYear" inputSize="14"/>
		<itdep:errorMessage for="#{idPrefix}GraduationYear"/>

		<h:outputText value="#{personBundle.education}" styleClass="requiredField"/>
		<itdep:entitySelectMenu value="#{actionBean.education}" entityType="education"
								id="#{idPrefix}StudentEducation"
								format="{i18n.description}" required="true" styleClass="sizeCopmonent"/>
		<itdep:errorMessage for="#{idPrefix}StudentEducation"/>

		<h:outputText value="#{dictionaryBundle.foreignLanguage}" styleClass="requiredField"/>
		<itdep:entitySelectMenu value="#{actionBean.foreignLanguage}" entityType="foreign-language"
								id="#{idPrefix}ForeignLanguage"
								format="{i18n.description}" required="true" styleClass="sizeCopmonent"/>
		<itdep:errorMessage for="#{idPrefix}ForeignLanguage"/>

		<h:outputText value="#{studentBundle.studentJob}"/>
		<h:inputText value="#{actionBean.studentJob}" styleClass="sizeCopmonent"/>
		<rich:spacer/>
	</h:panelGrid>

</ui:composition>
